package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.NursingProjectDto;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;

import java.util.List;

public interface NuseringProjectService {
    /** 
    * @Description: 通过id查询
    * @Param: [java.lang.Long]
    * @return: com.zzyl.entity.NursingProject
    * @author:fsq 
    * @date: 2024/5/28 12:11
    */
    NursingProjectVo getById(Long id);
    /** 
    * @Description: 查询所有的护理项目
    * @Param: []
    * @return: java.util.List<com.zzyl.entity.NursingProject>
    * @author:fsq 
    * @date: 2024/5/28 14:07
    */
    List<NursingProject> getAll();
    /** 
    * @Description: 增加护理项目
    * @Param: [com.zzyl.entity.NursingProject]
    * @return: void
    * @author:fsq 
    * @date: 2024/5/28 14:07
    */
    void addNursingProject(NursingProjectDto nursingProjectDto);
    /** 
    * @Description: 修改护理项目
    * @Param: [com.zzyl.entity.NursingProject]
    * @return: void
    * @author:fsq 
    * @date: 2024/5/28 14:07
    */
    void updateNursingProject(NursingProjectDto nursingProjectDto);
    /** 
    * @Description: 删除护理项目
    * @Param: [java.lang.Long]
    * @return: void
    * @author:fsq 
    * @date: 2024/5/28 14:37
    */
    void deleteNursingProject(Long id);

    /**
    * @Description: 条件分页查询护理项目
    * @Param: [java.lang.String, java.lang.Integer, java.lang.Integer, java.lang.Integer]
    * @return: com.zzyl.base.PageResponse<com.zzyl.vo.NursingProjectVo>
    * @author:fsq
    * @date: 2024/5/28 12:03
    */
    PageResponse<NursingProjectVo> getByPage(String name, Integer status, Integer pageNum, Integer pageSize);

    /** 
    * @Description: 根据护理项目id更改状态,启用禁用
    * @Param: [java.lang.Integer, java.lang.Integer]
    * @return: void
    * @author:fsq 
    * @date: 2024/5/30 20:04
    */
    void updateStatusById(long id, int status);
}
